$(function() {
    var test=[{
        "id": 1,
        "text": "Node 1",
        "state": "closed",
        "children": [{
            "id": 11,
            "text": "Node 11"
        },{
            "id": 12,
            "text": "Node 12"
        }]
    },{
        "id": 2,
        "text": "Node 2",
        "state": "closed"
    }]

    $.ajax({
        url:'tree_data1.json',
        success:function(data){
            console.log(data);
        }

    });
    $("#tree").combotree({
        url:'tree_data1.json',
        textField:'name',
        method:'get'
    });
    $("#treegrid").combotreegrid({
        url:'treegrid_data1.json',
        idField:'id',
        treeField:'name',
        method:'get',
        columns:[[
            {field:'name',title:'Name',width:200},
            {field:'size',title:'Size',width:100},
            {field:'date',title:'Date',width:100}
        ]]
    });
});





